import java.util.Scanner;
import java.util.Arrays;

public class Person {
    private String name;
    private int age;

    public Person() {
        System.out.println("不带参数的构造方法");
    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
        System.out.println("带参数的构造方法");
    }

    public void sleep() {
        System.out.println(this.name+"正在睡觉");
    }

    public void show() {
        System.out.println(this.name + "," + this.age);
    }

    public String GetName() {
        return this.name;
    }

    public int GetAge() {
        return this.age;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
